<!doctype html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>测试</title>
</head>
<body>
<img id="img" src="file://C:\Users\PHPER-002\Documents\Tencent Files\1060260324\Image\Group2\[9\)X\[9)X)B%MC{GNVF0)JR$20%O.jpg" />
<script>
    function urltoImage (url,fn){
        var img = new Image();
        img.src = url;
        img.onload = function(){
            fn(img);
        }
    };
    var url="file://C:\Users\PHPER-002\Documents\Tencent Files\1060260324\Image\Group2\[9\)X\[9)X)B%MC{GNVF0)JR$20%O.jpg";
    urltoImage('url',function(img){
        console.log(img);
    })

</script>
</body>
</html>